home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / comp / testoper.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  313 b   |  21 lines

  1. /*
  2.                                 T E S T O P E R . C
  3. */
  4.  
  5. #include "iccomp.h"
  6.  
  7. int test_operand(e, opcode)
  8.     ESTRUC_
  9.         *e;
  10.     OPCODE_
  11.         opcode;
  12. {
  13.     register int
  14.         ret;
  15.  
  16.     if ( (ret = !test_type(e, optype[opcode])) )
  17.         semantic(illegal_type, opstring[opcode]);
  18.  
  19.     return (ret);
  20. }
  21.